import request from '@/utlis/request.js';
export const getPurchaseListService = (data) => {
    return request.post('/purchase/query', data);
}
export const addPurchaseService=(data)=>{
    return request.post('/purchase/register',data);
}

export const updatePurchaseService=(data)=>{
    return request.post('/purchase/update',data);
}

export const deletePurchaseService=(id)=>{
    return request.post(`/purchase/delete/${id}`);
}

export const findPendingApprovalsService=(data)=>{
    return request.post('/purchase/findPendingApprovals',data);
}
export const approvePurchaseService=(data)=>{
    return request.post('/purchase/approve',data)
}
